package com.ym.b2b.user.dao;

import org.springframework.dao.DataAccessException;

import com.ym.b2b.user.sqlbean.AgentBuyer;
import com.ym.b2b.user.sqlbean.AgentProvider;
import com.zc.commons.base.Page;

public interface AgentUserDao {

    public Page<AgentBuyer> searchPageAgentBuyer(AgentBuyer agentBuyer, Page<AgentBuyer> page)
                                                                                              throws DataAccessException;

    public Long searchAgentBuyerNum(AgentBuyer agentBuyer) throws DataAccessException;

    public Page<AgentProvider> searchPageAgentProvider(AgentProvider agentProvider, Page<AgentProvider> page)
                                                                                                             throws DataAccessException;

    public Long searchAgentProviderNum(AgentProvider agentProvider) throws DataAccessException;

}
